package com.zcup.fileupload.utils;

import java.math.BigInteger;
import java.util.Date;
import java.util.UUID;

public class UUIIDUtils {
    public static BigInteger randomNum(){
        long l = Long.parseLong((String.valueOf(UUID.randomUUID().hashCode()) + new Date().hashCode()).replaceAll("-", ""));
        return BigInteger.valueOf(l);
    }

    public static String randomStr(){
        return UUID.randomUUID().toString().replaceAll("-","").toUpperCase();
    }
}
